package com.tangshuai.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * DemoController
 * @author TANGSHUAI
 * @version 1.0
 * @date 2024-03-04 9:59
 */
@Controller
public class DemoController {

    private static final Logger logger = LoggerFactory.getLogger(DemoController.class);

    /**
     * 测试123456
     * @param model
     * @return
     */
    @RequestMapping(value = "/index")
    public String index(Model model) {
        logger.info("1234=============>");
        model.addAttribute("data","SpringBoot 成功集成 Thymeleaf 模版！");
        return "index";
    }
}
